import request from '@/utils/request'

// 创建激励活动
export function createIncentive(data) {
	return request({
		url: '/activity/createIncentive',
		method: 'POST',
		data: data
	})
}

// 激励活动列表
export function fetchRewardList(data) {
	return request({
		url: '/activity/getList',
		method: 'POST',
		data: data
	})
}

// 激励活动作废
export function rewardIncalid(data) {
	return request({
		url: '/activity/invalid',
		method: 'POST',
		data: data
	})
}

// 激励活动详情
export function rewardActivityInfo(data) {
	return request({
		url: '/activity/getInfo',
		method: 'POST',
		data: data
	})
}



// WEBPACK FOOTER //
// ./src/api/activity.js